import sympy as sp

# 定义符号变量
x = sp.symbols('x')

# 定义积分表达式
numerator = sp.integrate(2 * x**2, (x, 0, 1))
denominator = sp.integrate(2 * x, (x, 0, 1))

# 计算质心
X = numerator / denominator
Y = X

print(f"质心坐标：({float(X):.3f}, {float(X):.3f})")